Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

downgrade mysql driver version #1193

Merged
merged 3 commits into from
Mar 17, 2021
Merged

downgrade mysql driver version #1193

merged 3 commits into from
Mar 17, 2021

Conversation

lysu
Copy link
Collaborator

@lysu lysu commented Mar 17, 2021

What problem does this PR solve?

#851 introduce go-sql-driver/mysql dependence with high version for test case

but https://github.com/pingcap/mysql-tester will use pingcap/parser

and go-sql-driver/mysql#676 remove Warn API and strict mode which heavy used in pingcap/mysql-tester and pingcap/tidb-test.

(warn can workaround but strict need modify large number for tidb-test testcase)

so this PR choose downgrade mysql/driver version

What is changed and how it works?

downgrade veresion

Check List

Tests

  • Manual test
upgrade mysql-tester and run tidb-test success

Code changes

  • n/a

Side effects

  • n/a

Related changes

  • n/a

This change is Reviewable

@jackysp
Copy link
Member

jackysp commented Mar 17, 2021

/lgtm

@ti-srebot ti-srebot added the status/LGT1 LGT1 label Mar 17, 2021
@kennytm
Copy link
Contributor

kennytm commented Mar 17, 2021

is there any plan to fix the tests?

@lysu
Copy link
Collaborator Author

lysu commented Mar 17, 2021

is there any plan to fix the tests?

@bb7133 @zz-jason maybe can schedule a task to upgrade tidb-test's go-sql-driver/mysql to latest version?

maybe we can downgrade it first? because current in-hand works is unrelated but blocked by this 😞

@kennytm
Copy link
Contributor

kennytm commented Mar 17, 2021

@lysu ok. but could you set the version to v1.4.1 instead of a git commit?

@lysu
Copy link
Collaborator Author

lysu commented Mar 17, 2021

@lysu ok. but could you set the version to v1.4.1 instead of a git commit?

git name-rev --tags --name-only a8b7ed4454a6a4f98f85d3ad558cd6d97cec6959
v1.4.0~35

v1.4.0 also include go-sql-driver/mysql#676, we can use v1.3.0

@lysu
Copy link
Collaborator Author

lysu commented Mar 17, 2021

@kennytm PTAL, we have tried some way without modify parser but still have no good workaround for this..

@kennytm
Copy link
Contributor

kennytm commented Mar 17, 2021

@lysu let's use 1.3.0. the dependency is only imported for an optional test.

@lysu
Copy link
Collaborator Author

lysu commented Mar 17, 2021

yes, it's using 1.3.0 in the latest commit :)

@kennytm
Copy link
Contributor

kennytm commented Mar 17, 2021

/lgtm

@ti-srebot ti-srebot removed the status/LGT1 LGT1 label Mar 17, 2021
@ti-srebot ti-srebot added the status/LGT2 LGT2 label Mar 17, 2021
@kennytm kennytm merged commit 511d0b5 into master Mar 17, 2021
@kennytm kennytm deleted the downgrade_mysql_driver branch March 17, 2021 19:36
tiancaiamao pushed a commit to tiancaiamao/parser that referenced this pull request Apr 27, 2021
* downgrade mysql driver version

* use v1.4.1

* use v1.3.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants